/**
 * 
 */
package net.teamix;

import java.io.File;

import javax.faces.context.FacesContext;
import javax.servlet.ServletContext;

import org.jdom.Document;
import org.jdom.input.SAXBuilder;

/**
 * @author shari
 * 
 */
public class XMLDoc {
	File file;
	Document doc;

	public Document getDoc() {
		return doc;
	}

	public void setDoc(Document doc) {
		// ---- Read XML file ----
		
		System.out.println(file.getAbsolutePath());
		SAXBuilder builder = new SAXBuilder();
		try {
			doc = builder.build(file);
		} catch (Exception e) {
		}
		this.doc = doc;
	}

	public File getFile() {
		return file;
	}

	public void setFile(File file) {
		this.file = file;
	}

}
